package org.nfyszny.zzzs.modules.utils;

import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser;

/**
 * 用户工具类
 */
public class UserUtils {
    /**
     * 获取用户信息
     *
     * @return
     */
    public static LoginUser getUserInfo() {
        System.out.println("ss=>"+SecurityUtils.getSubject().getPrincipal());
        LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
        return loginUser;
    }
}
